package org.example.mybaties.service;

import lombok.AllArgsConstructor;
import org.example.mybaties.model.UserInfo;
import org.example.mybaties.model.UserInfoMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserService {

    @Autowired
    private UserInfoMapper userInfoMapper;


    public List<UserInfo> getUserAll(){
        return userInfoMapper.getUserInfoAll();
    }
}
